|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrolesystem.roles.auction.Auctioneer
public abstract class Auctioneer
This role is the auctioneer of an auction. Keywords: auction, auctioneer.
| Field Summary | |
|---|---|
static KnownEvent |
KE_askGood
A bidder asks the description of the good on sale. |
static KnownEvent |
KE_askKind
A bidder asks the kind of the auction (English, Dutch...). |
static KnownEvent |
KE_askSituation
A bidder asks the current situation of the auction. |
static KnownEvent |
KE_bid
A bidder makes a bid. |
static KnownEvent |
KE_pay
A bidder pays. |
static KnownEvent |
KE_putOnSale
A seller puts a good on sale. |
static KnownEvent |
KE_reqSale
A seller requests to put a good on sale. |
static java.lang.String |
ROLE_ID
Role identifier. |
| Constructor Summary | |
|---|---|
Auctioneer()
|
|
| Method Summary | |
|---|---|
static RoleAction |
auctionOver(int addressee)
Notifies that the auction is over. |
static RoleAction |
giveGood(int addressee,
java.io.Serializable content)
Gives a good. |
static RoleAction |
notifyGood(int addressee,
java.lang.String content)
Notifies the good on sale. |
static RoleAction |
notifyKind(int addressee,
java.lang.String content)
Notifies the kind of the auction. |
static RoleAction |
notifySituation(int addressee,
Situation content)
Notifies the current situation of the auction. |
static RoleAction |
pay(int addressee,
Money content)
Pays. |
static RoleAction |
saleAccepted(int addressee)
Notifies to a seller that its sale has been accepted. |
static RoleAction |
saleRefused(int addressee)
Notifies to a seller that its sale has been refused. |
static RoleAction |
unsold(int addressee)
Notifies to a seller that its good is unsold. |
static RoleAction |
youWon(int addressee,
Price content)
Notifies to a bidder that it has won the auction and thus it must pay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROLE_ID
public static final KnownEvent KE_reqSale
public static final KnownEvent KE_putOnSale
public static final KnownEvent KE_askKind
public static final KnownEvent KE_askGood
public static final KnownEvent KE_askSituation
public static final KnownEvent KE_bid
public static final KnownEvent KE_pay
| Constructor Detail |
|---|
public Auctioneer()
| Method Detail |
|---|
public static RoleAction saleAccepted(int addressee)
addressee - Sellerpublic static RoleAction saleRefused(int addressee)
addressee - Sellerpublic static RoleAction unsold(int addressee)
addressee - Seller
public static RoleAction pay(int addressee,
Money content)
addressee - Sellercontent - Payment.
public static RoleAction notifyKind(int addressee,
java.lang.String content)
addressee - Biddercontent - Kind of the auction (English, Dutch...).
public static RoleAction notifyGood(int addressee,
java.lang.String content)
addressee - Biddercontent - Description of the good on sale.
public static RoleAction notifySituation(int addressee,
Situation content)
addressee - Biddercontent - Situation of the auction, i.e. proposed price, winning bidder and countdown state.public static RoleAction auctionOver(int addressee)
addressee - Bidder
public static RoleAction youWon(int addressee,
Price content)
addressee - Biddercontent - Price that must be paid.
public static RoleAction giveGood(int addressee,
java.io.Serializable content)
addressee - Biddercontent - Good.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||